
include(CMakeForceCompiler)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_CROSSCOMPILING 1)
set(TOOLCHAIN_PATH "C:/Keil_v5/ARM/ARMCC/bin")
set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/armcc.exe")
set(CMAKE_ASM_COMPLIER "${TOOLCHAIN_PATH}/armcc.exe")
set(CMAKE_C_LINK_EXECUTABLE "${TOOLCHAIN_PATH}/armlink.exe")